package com.punch.system.mapper;


import com.punch.common.dto.system.dict.RedisDictDTO;
import com.punch.db.mapper.SuperMapper;
import com.punch.system.model.SysDict;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * SysDictMapper-数据字典表 Mapper 接口
 *
 * @author wujj
 * @version 1.0.0
 * @since 2020/6/3 20:03
 */
@Mapper
public interface SysDictMapper extends SuperMapper<SysDict> {

    /**
     * 根据key获取数据字典
     *
     * @param dictKey 字典key
     * @return List<RedisDict>
     * @author wujj
     * @since 2020/6/6 12:40
     */
    List<RedisDictDTO> selectRedisDictList(@Param("dictKey") String dictKey);

    /**
     * 根据名称或者key获取数据字典
     *
     * @param dictKey  字典key
     * @param dictName 字典名称
     * @return List<SysDict>
     * @author wujj
     * @since 2020/6/24 9:35
     */
    List<SysDict> selectListBykeyOrName(@Param("dictKey") String dictKey, @Param("dictName") String dictName);
}
